<!DOCTYPE html>
<html>
	<head>
		<title>Mt222bmProject</title>
		<%= stylesheet_link_tag    "application" %>
		<%= javascript_include_tag "application" %>
		<%= csrf_meta_tags %>
		<style type="text/css">
body {
	padding-top:60px;
}
		</style>
	</head>
	<body>
		<div class="container-fluid">
			<div class="content">
				<div class="hero-unit">
					<ul>
						<%= yield %>
					</ul>
				</div>
				<div id="user_nav">
					<% if current_user %>
					Logged in as <%= current_user.email %>.
					<%= link_to "Logga ut", log_out_path %>
					<% else %>
					<%= link_to "Skaffa konto", sign_up_path %> or
					<%= link_to "Logga in", log_in_path %>
					<% end %>
				</div>
				<% flash.each do |name, msg| %>
				<%= content_tag :div, msg, :id => "flash_#{name}" %>
				<% end %>
			</div>
		</div>
	</body>
</html>
